package com.ysh.xiaomi.service;

import com.ysh.xiaomi.pojo.TbAddress;
import com.ysh.xiaomi.pojo.TbUser;

/**
 * 袁胜虎 on 2022/8/16 8:12
 */
public interface UserService {
    /**
     * 添加用户
     * @param tbUser
     * @return
     */
    public int AddUser(TbUser tbUser);
    public int AddAddress(TbAddress address);
    public  TbUser login(String username,String password);

    /**
     * 更新登录时间
     * @param userId
     * @return
     */
    int updateLoginTime(Long userId);

    TbUser adminLogin(String username, String password);
}
